package com.shockweb.common.arithmetic;
/**
 * Stack堆栈
 * @author pengminghua
 *
 */
public class Stack<T> extends java.util.Stack<T>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 返回到堆栈的顶部元素
	 * @return Object
	 */
	public Object getTop(){
		if(this.size()>0){
			return this.get(this.size()-1);
		}else{
			return null;
		}
	}
}
